package com.ny.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;

@Document(collection = "sensor_data")
@Data
public class SensorData {
    // 设备ID
    private String deviceId;
    // 温度
    private float temperature;
    // 湿度
    private float humidity;
    // 数据接收时间
    private Date receiveTime;
    // 设备发送时间（从消息中解析）
    private Date deviceTime;
}